package br.ufrn.engcomp.exception;

public class ValidacaoException extends Exception {

    private static final long serialVersionUID = 1L;
    private static ValidacaoException singleton = null;
    private String mensagens;

    private ValidacaoException() {

    }

    public ValidacaoException(String message) {
	super(message);
    }

    public ValidacaoException(Throwable cause) {
	super(cause);
    }

    public ValidacaoException(String message, Throwable cause) {
	super(message, cause);
    }

    public static ValidacaoException getInstance() {
	if (singleton == null) {
	    singleton = new ValidacaoException();
	}
	return singleton;
    }

    public String getMensagens() {
	return mensagens;
    }

    public void setMensagens(String mensagens) {
	this.mensagens = mensagens;
    }

}
